<?php
namespace app\portal\model;

use think\Model;

class UserFavoriteModel extends Model
{
    public function house() {
      return $this->hasOne('House', 'id', 'object_id');
    }

    public function user() {
      return $this->hasOne('UserModel', 'id', 'user_id');
    }
}
